package demo3;

public class test1 {
    public static void main(String[] args) {

        //1，tostring 返回对象的字符串表现形式
        Object obj = new Object();
        String str1 = obj.toString();
        System.out.println(str1);

        Student stu = new Student("张三",23);
        String str2 = stu.toString();
        System.out.println(str2);
        System.out.println(stu);

    }
}
